package com.holiday.eshop.module.constants;

import android.support.v4.app.Fragment;

import com.holiday.eshop.R;
import com.holiday.eshop.ui.fragment.CarFragment;
import com.holiday.eshop.ui.fragment.CategoryFragment;
import com.holiday.eshop.ui.fragment.FindFragment;
import com.holiday.eshop.ui.fragment.HomeFragment;
import com.holiday.eshop.ui.fragment.MeFragment;

/**
 * @author
 * @version 1.0
 * @date 2017/5/5
 */

public enum MainTabs {
    Home("home", HomeFragment.class, R.drawable.home_selector),
    Category("category", CategoryFragment.class, R.drawable.category_selector),
    Find("find", FindFragment.class, R.drawable.find_selector),
    Car("car", CarFragment.class, R.drawable.car_selector),
    Me("me", MeFragment.class, R.drawable.me_selector);
    
    
    private String tag;
    private Class<? extends Fragment> clazz;
    private int resId;
    
    MainTabs(String tag, Class<? extends Fragment> clazz, int resId) {
        this.tag = tag;
        this.clazz = clazz;
        this.resId = resId;
    }
    
    public String getTag() {
        return tag;
    }
    
    public Class<? extends Fragment> getClazz() {
        return clazz;
    }

    
    public int getResId() {
        return resId;
    }
}
